package com.apartmentManage.dao;

import com.apartmentManage.entity.AbsenceLog;
import com.apartmentManage.entity.IntoPersonnel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AbsenceLogDao {
    /*添加*/
    int save(@Param("absenceLog") AbsenceLog absenceLog);

    /*修改*/
    int update(@Param("absenceLog") AbsenceLog absenceLog);

    /*删除*/
    int delete(@Param("sno") String sno);

    /*查询所有*/
    List<AbsenceLog> getAll();

    /*通过no查询*/
    AbsenceLog getByNo(@Param("sno") String sno);

    /*条件模糊查询*/
    List<AbsenceLog> getByRequirement(@Param("absenceLog") AbsenceLog absenceLog);
}
